Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal baseQuery As IEntityQuery(Of T), _ ByVal sortSelector As ISortSelector, _ ByVal pageSize As Integer _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim baseQuery As IEntityQuery(Of T) Dim sortSelector As ISortSelector Dim pageSize As Integer Dim instance As New EntityQueryPager(Of T)(baseQuery, sortSelector, pageSize) |
C# | |
---|---|
public EntityQueryPager<T>( IEntityQuery<T> baseQuery, ISortSelector sortSelector, int pageSize ) |
C++/CLI | |
---|---|
public: EntityQueryPager<T>( IEntityQuery<T^>^ baseQuery, ISortSelector^ sortSelector, int pageSize ) |
Parameters
- baseQuery
- The base query
- sortSelector
- Sort criteria
- pageSize
- Page size
Exception | Description |
---|---|
System.ArgumentException | Thrown during argument validation |
The baseQuery provided must be "attached" to an EntityManager, since it's the EntityManger which will execute the query and cache its results. The sortSelector is required and can be a simple or composite expression. The pageSize must be greater than 0.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family